package com.svpino.netflix.parsers;

import org.w3c.dom.Element;

import com.svpino.netflix.ProxyImpl;

public class FieldParser extends AbstractParser<String> {

	public FieldParser(ProxyImpl proxy) {
		super(proxy);
	}
	
	@Override
	public String parse(String resource) throws Exception {
		return parse(request(resource));
	}

	@Override
	public String parse(Element element) throws Exception {
		return element.getTextContent();
	}

}
